package trss.dao;

import trss.model.Torrent;
import trss.model.User;

import java.util.List;

/**
 * Torrent Access Object (GenericDao) interface.
 *
 * @author igorvkhoroshev
 */
public interface TorrentDao extends GenericDao<Torrent, Long> {

    public Torrent saveTorrent(Torrent torrent);
    
    /**
     * @param user
     * @param maxCount Max count of result items. If < 1 then unlimited 
     * @return 
     */
    public List<Torrent> get(User user, int maxCount);
}
